export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    // {
    //   label: "创建人",
    //   prop: "createUser",
    //   type: "select",
    //   dicUrl: "/api/blade-user/listAll",
    //   props: {
    //     label: "name",
    //     value: "id"
    //   },
    //   addDisplay: false,
    //   editDisplay: false,
    // },

    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   type: "input",
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    // {
    //   label: "修改人",
    //   prop: "updateUser",
    //   type: "select",
    //   dicUrl: "/api/blade-user/listAll",
    //   props: {
    //     label: "name",
    //     value: "id"
    //   },
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTime",
    //   type: "input",
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    {
      label: "名称",
      prop: "name",
      type: "input",
      rules: [{
        required: true,
        message: "请输入名称",
        trigger: "blur"
      }]
    },
    // {
    //   label: "类别",
    //   prop: "category",
    //   type: "input"
    // },
    {
      label: "标签",
      prop: "tag",
      type: "input",
      tip: '多个标签用分号分隔'
    },
    {
      label: "封面",
      prop: "coverUrl",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传封面图",
        trigger: "change"
      }]
    },
    {
      label: "轮播图",
      prop: "scrollImages",
      type: 'upload',
      listType: 'picture-card',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传封面图",
        trigger: "change"
      }]
    },
    {
      label: "开放时间",
      prop: "startTime",
      require: true,
      type: "time",
      format: 'HH:mm',
      valueFormat: 'HH:mm',
      rules: [{
        required: true,
        message: "请选择开关时间",
        trigger: "change"
      }]
    },
    {
      label: "关闭时间",
      prop: "endTime",
      type: "time",
      format: 'HH:mm',
      valueFormat: 'HH:mm',
      rules: [{
        required: true,
        message: "请选择闭馆时间",
        trigger: "change"
      }]
    },
    {
      label: '展示价格',
      prop: 'price',
      type: 'number',
      min: 0
    },
    {
      label: "简介",
      prop: "introduction",
      type: "input",
    },
    {
      label: "详情",
      prop: "details",
      component: 'AvueUeditor',
      options: {
        action: '/api/blade-resource/oss/endpoint/put-file',
        props: {
          res: "data",
          url: "link",
        }
      },
      hide: true,
      minRows: 6,
      span: 24,
    },
  ]
}
